﻿using UnityEngine;
using System.Collections;

public class SimpleClickDebugScript : MonoBehaviour
{

	// Use this for initialization
	void Start()
	{

	}

	// Update is called once per frame
	void Update()
	{
		RaycastHit hit;

		if ( Input.GetMouseButtonDown( 0 ) && Physics.Raycast( Camera.main.ScreenPointToRay( Input.mousePosition ), out hit, Mathf.Infinity, 1 << LayerMask.NameToLayer( "Car" ) ) )
		{
			Debug.Log( "hit something" );
		}
	}
}
